package com.nari.interplatform.service.impl;

import com.nari.interplatform.domain.RstRequest;
import com.nari.interplatform.mapper.RstRequestMapper;
import com.nari.interplatform.service.IRstRequestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 参数配置 服务层实现
 * 
 * @author nari
 */
@Service
public class RstRequestServiceImpl implements IRstRequestService
{
    @Autowired
    private RstRequestMapper rstRequestMapper;
    /**
     * 查询请求信息
     *
     * @param rstRequest 请求信息
     * @return 请求信息
     */
    @Override
    public RstRequest selectRstRequest(RstRequest rstRequest){
        return rstRequestMapper.selectRstRequest(rstRequest);
    }

    /**
     * 根据键名查询tranSeq
     *
     * @param tranSeq 参数键名
     * @return 请求信息
     */
    @Override
    public RstRequest checkRstRequestKeyUnique(String tranSeq) {

        return rstRequestMapper.checkRstRequestKeyUnique(tranSeq);
    }

    /**
     * 修改请求信息
     *
     * @param rstRequest 请求信息
     * @return 结果
     */
    @Override
    public int updateRstRequest(RstRequest rstRequest) {
        int row = rstRequestMapper.updateRstRequest(rstRequest);

        return row;

    }
    /**
     * 新增请求信息
     *
     * @param rstRequest 请求信息
     * @return 结果
     */
    @Override
    public int insertRstRequest(RstRequest rstRequest){
        int row = rstRequestMapper.insertRstRequest(rstRequest);

        return row;
    }

}
